Andrea Corallo [Sun, 22 Mar 2020 14:50:01 +0000 (14:50 +0000)]
* comp.c (maybe_defer_native_compilation): Add some debug code
Andrea Corallo [Sun, 22 Mar 2020 09:35:55 +0000 (09:35 +0000)]
* comp.el: Add missing require
Andrea Corallo [Sat, 21 Mar 2020 19:32:01 +0000 (19:32 +0000)]
* .gitlab-ci.yml: CI test native bootstrap speed1 and speed2
Do just a fast bootstrap for these two.
Andrea Corallo [Sat, 21 Mar 2020 14:11:41 +0000 (14:11 +0000)]
Have a fast build option triggered by env var NATIVE_FAST_BOOT
Andrea Corallo [Thu, 19 Mar 2020 18:37:32 +0000 (18:37 +0000)]
* comp.el (comp-async-jobs-number): Fix customize type.
Andrea Corallo [Thu, 19 Mar 2020 16:49:55 +0000 (16:49 +0000)]
Merge remote-tracking branch 'savannah/master' into HEAD
Andrea Corallo [Wed, 18 Mar 2020 20:16:05 +0000 (20:16 +0000)]
* comp.el (comp-run-async-workers): Load only if compilation succeed
Lars Ingebrigtsen [Thu, 19 Mar 2020 15:15:04 +0000 (16:15 +0100)]
Don't have exif bugging out on short strings
* lisp/image/exif.el (exif--direct-ascii-value): New function
(bug#40127).
(exif--parse-directory): Use it to get the correct values for
in-directory (i.e., shorter than 4 octets) strings.
Eli Zaretskii [Thu, 19 Mar 2020 14:57:35 +0000 (16:57 +0200)]
Fix display of :box face when overlay strings are around
* src/xdisp.c (reset_box_start_end_flags): New function.
(handle_face_prop): Only set the start_of_box_run_p flag, don't
reset it.
(pop_it): Set the face_box_p flag, if the popped face requires
that, when continuing iteration over buffer text.
(get_next_display_element, next_element_from_display_vector): Only
set the end_of_box_run_p flag, never reset it here.
(set_iterator_to_next): Don't reset the start_of_box_run_p and
end_of_box_run_p flags here. They are now reset as side effect of
PRODUCE_GLYPHS.
(append_space_for_newline): Restore the end_of_box_run_p flag
after PRODUCE_GLYPHS where we previously didn't reset it.
* src/dispextern.h (PRODUCE_GLYPHS): Call
reset_box_start_end_flags after producing glyphs.
(Bug#40124)
Paul Eggert [Thu, 19 Mar 2020 06:58:46 +0000 (23:58 -0700)]
Tiny simplification of frac_to_double
* src/timefns.c (frac_to_double): Remove unnecessary runtime check,
since the denominator is always positive.
Paul Eggert [Wed, 18 Mar 2020 21:48:52 +0000 (14:48 -0700)]
Omit timestamp optimization invalid on 387 FPU
* src/timefns.c (frac_to_double): Omit optimization that is
invalid on machines with excess precision (e.g., gcc x86 with 387
FPU), because it double-rounds. Found via ‘gcc -m32’ on x86-64.
Andrea Corallo [Wed, 18 Mar 2020 20:00:43 +0000 (20:00 +0000)]
* comp.c (native-elisp-load): Guard against misisng file.
Andrea Corallo [Wed, 18 Mar 2020 21:20:52 +0000 (21:20 +0000)]
Command late load when deferring compilation
Andrea Corallo [Wed, 18 Mar 2020 19:52:36 +0000 (19:52 +0000)]
* comp.el: Extend `native-compile-async' for load and late-load
Andrea Corallo [Wed, 18 Mar 2020 19:48:50 +0000 (19:48 +0000)]
Extend low level code for late load
Andrea Corallo [Tue, 17 Mar 2020 22:24:52 +0000 (22:24 +0000)]
* comp.el: late-load support optional as `native-compile' parameter
Andrea Corallo [Tue, 17 Mar 2020 21:35:11 +0000 (21:35 +0000)]
* comp.el: Have the compiler generates 'late_top_level_run'
Glenn Morris [Wed, 18 Mar 2020 14:50:37 +0000 (07:50 -0700)]
Merge from origin/emacs-27
e92b8e535a (origin/emacs-27) Remove raw carriage return characters fr...
5747a59a88 Recalculate default font when switching font backend
a2dd8c4234 * lisp/tab-line.el: Fix tab-line-format and tab-line-forma...
a7b8291b6c * etc/NEWS: Make the `--eval` example slightly more precise
f8254aad14 * lisp/image/image-converter.el: Support more ImageMagick ...
5beb269505 Support Unicode 13.0
3a671ad7ed Fix regression in wisent-total-conflicts
# Conflicts:
# etc/NEWS
Glenn Morris [Wed, 18 Mar 2020 14:50:36 +0000 (07:50 -0700)]
; Merge from origin/emacs-27
The following commit was skipped:
dcc943be0a * lisp/progmodes/cc-defs.el (c-version): update to 5.34.1 ...
Glenn Morris [Wed, 18 Mar 2020 14:50:36 +0000 (07:50 -0700)]
Merge from origin/emacs-27
3a8a231810 * lisp/textmodes/fill.el (fill-nobreak-predicate): Fix doc...
cbe643104d Improve Package Menu hiding docstrings
8d28c98ae0 Fix display of Big5 characters when using Fontconfig
Stefan Monnier [Wed, 18 Mar 2020 14:20:13 +0000 (10:20 -0400)]
* lisp/vc/smerge-mode.el (smerge-start-session): Don't re-enable
Don't do anything if smerge-mode is already enabled.
Philipp Stephani [Wed, 18 Mar 2020 11:37:47 +0000 (12:37 +0100)]
Remove raw carriage return characters from test file.
This protects against tools that mangle newline characters in text
files.
* test/lisp/electric-tests.el (electric-pair-mode-newline-between-parens)
(electric-layout-mode-newline-between-parens-without-e-p-m)
(electric-layout-mode-newline-between-parens-without-e-p-m-2): Escape
carriage return characters.
Mattias Engdegård [Tue, 17 Mar 2020 12:18:14 +0000 (13:18 +0100)]
Don't generate useless range table entries for ASCII chars
In multibyte regexps, each ASCII char or range in a character
alternative produces a nonsense range table entry in addition to the
correct bits in the ASCII bitmap. Those entries do not match anything
but waste space and time.
* src/regex-emacs.c (regex_compile): Don't generate reversed intervals.
Robert Pluim [Mon, 16 Mar 2020 16:21:02 +0000 (17:21 +0100)]
Recalculate default font when switching font backend
This is an updated version of the patch by Dmitry Antipov
<dmantipov@yandex.ru> in
<https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23386#43>.
Fixes Bug#23386
* src/dispextern.h (struct redisplay_interface): New member
default_font_parameter.
* src/xterm.h: Add prototype for x_default_font_parameter.
* src/xterm.c (x_redisplay_interface): Initialize
default_font_parameter member.
* src/xfns.c (x_default_font_parameter): Make non-static.
* src/w32term.h: Add prototype for w32_default_font_parameter
* src/w32fns.c (w32_default_font_parameter): Make non-static.
* src/w32term.c (w32_redisplay_interface): Initialize
default_font_parameter member.
* src/nsterm.m (ns_redisplay_interface): Add dummy
ns_default_font_parameter (there is currently only one possible font
backend on macOS). Initialize default_font_parameter member.
* src/frame.c (gui_set_font_backend): Recalculate default font using
RIF default_font_parameter to avoid crash when changing font backend.
Juri Linkov [Mon, 16 Mar 2020 23:11:27 +0000 (01:11 +0200)]
* lisp/tab-line.el: Fix tab-line-format and tab-line-format-template.
* lisp/tab-line.el (tab-line-format): Use buffer-name in the cache key
instead of just buffer object to invalidate the cache on buffer renaming.
(tab-line-format-template): Always leave the separator after the last tab
like tab-bar.el already does.
Andrea Corallo [Mon, 16 Mar 2020 23:08:47 +0000 (23:08 +0000)]
Merge remote-tracking branch 'savannah/master' into HEAD
Andrea Corallo [Sun, 15 Mar 2020 21:44:05 +0000 (21:44 +0000)]
Trigger native compilation when loading bytecode
Introduce a first mechanism to trigger compilation when lex elc files
are loaded. This is off by default and has to be better tested.
Andrea Corallo [Sun, 15 Mar 2020 21:07:14 +0000 (21:07 +0000)]
* comp.el: (native-compile-async) do not duplicate queue entries
Andrea Corallo [Sun, 15 Mar 2020 20:17:15 +0000 (20:17 +0000)]
* comp.el: Estimate async worker number using system CPU number
This only when `comp-async-jobs-number' is 0 (default).
Andrea Corallo [Sun, 15 Mar 2020 19:37:51 +0000 (19:37 +0000)]
* comp.el: Make compilation logic to be dynamically controllable
Introduce `comp-async-jobs-number' to control async job number, this
can be now adjusted dynamically.
Also make `native-compile-async' able to dynamically queue new
compilations.
Stefan Monnier [Mon, 16 Mar 2020 17:12:52 +0000 (13:12 -0400)]
* etc/NEWS: Make the `--eval` example slightly more precise
Yuan Fu [Sun, 15 Mar 2020 15:47:43 +0000 (16:47 +0100)]
Add store/restore window configuration feature for gdb-mi
Add a feature that allows a user to save a gdb window
configuration (window layout) to a file with
'gdb-save-window-configuration' and load it back with
'gdb-load-window-configuration'. Set a default window configuration
by setting 'gdb-default-window-configuration-file'.
Add an option to make gdb preserve the window configuration
that the user had before starting gdb. In window.el, add
'with-window-non-dedicated'.
* lisp/progmodes/gdb-mi.el (top/level): Require 'pcase' and 'cl-seq'.
(gdb--window-configuration-before): New variable.
(gdb-restore-window-configuration-after-quit): New option.
(gdb-window-configuration-directory,
gdb-default-window-configuration-file): New variables.
(gdb): Save configuration on startup.
(gud-menu-map): Add "Load Layout" and "Save Layout" to menu. Add
"Restore Layout After Quit" button to menu. Rename "Restore Window
Layout" to "Restore Default Layout", add some help echo, and move it
from "GDB-MI" menu to "GDB-WINDOWs" menu.
(gdb-toggle-restore-window-configuration): New function.
(gdb-get-source-buffer): New function, extracted out of
'gdb-restore-window'.
(gdb-setup-windows): Add a condition branch that loads default window
configuration when available. Fix docstring.
(gdb-buffer-p, gdb-function-buffer-p, gdb--buffer-type,
gdb-save-window-configuration, gdb-load-window-configuration): New
functions.
(gdb-restore-windows): Edit docstring to mention
'gdb-default-window-configuration-file'.
(gdb-reset): Restore window configuration after quit.
* lisp/window.el (with-window-non-dedicated): New macro.
Eli Zaretskii [Sun, 15 Mar 2020 14:47:54 +0000 (16:47 +0200)]
Reverse the meaning of 2nd arg to 'live_buffer_holding'
* src/alloc.c (live_buffer_holding): Rename ALL_BUFFERS ti
IGNORE_KILLED, and reverse the condition for returning killed
buffers.
(live_buffer_p): Add commentary.
(live_buffer_p, mark_maybe_object, mark_maybe_pointer): Reverse
the 2nd argument to live_buffer_holding. (Bug#39962)
Pip Cet [Sat, 14 Mar 2020 18:26:33 +0000 (18:26 +0000)]
Make sure we mark reachable killed buffers during GC
* src/alloc.c (live_buffer_holding): Add ALL_BUFFERS argument for
returning killed buffers.
(mark_maybe_object, mark_maybe_pointer): Use the additional
argument. (Bug#39962)
Andrea Corallo [Sun, 15 Mar 2020 10:31:03 +0000 (10:31 +0000)]
Merge remote-tracking branch 'savannah/master' into HEAD
Andrea Corallo [Sun, 15 Mar 2020 10:27:38 +0000 (10:27 +0000)]
* .gitlab-ci.yml: Always run test-filenotify-gio
test-filenotify-gio is run always to keep stock bootstrap tested.
Andrea Corallo [Sun, 15 Mar 2020 10:26:31 +0000 (10:26 +0000)]
* comp.el: Fix missing rx require
Adam Porter [Sun, 15 Mar 2020 10:19:22 +0000 (10:19 +0000)]
comp.el: Minor improvements
Change: (comp-start-async-worker) Refactor slightly
Change: (comp-start-async-worker) Inline (comp-to-file-p)
Change: (comp-source-files) Rename from comp-src-pool
Add: (comp-start-async-worker) Assertion
Change: (comp-async-processes) Rename from comp-prc-pool
Tidy: (native-compile)
Rename variables, improve docstring, adjust log message, simplify
filename code.
Tidy: (batch-native-compile) Docstring
Tidy: whitespace-cleanup
Tidy: (comp-start-async-worker) Use () instead of nil
Tidy: (comp-files-queue) Rename from comp-source-files
Change: (native-compile-async) Improve paths support
Tidy: Comment
Save a line for one word. :)
Change: (comp-log) Rewrite without macro, follow tail
Change: (native-compile-async) Use end-of-string in filename regexps
Change: (native-compile-async) Use cl-loop instead of dotimes
Add/Change: (comp-log-to-buffer) And use in comp-log
Comment: Tidy comment
Fix: (configure.ac) Option description
Fix: (comp-log) Argument
Fix: (comp-start-async-worker) Variable name
Change: Undo whitespace changes
Some of them included incorrect indentation because the
macros' (declare (indent)) forms were not loaded. The
whitespace-cleanup should be run from Emacs 27+ with the file loaded.
Juri Linkov [Sat, 14 Mar 2020 23:58:58 +0000 (01:58 +0200)]
* lisp/image/image-converter.el: Support more ImageMagick versions (bug#39994)
* lisp/image/image-converter.el (image-converter--probe): Match
a possible additional second column in some ImageMagick versions
of "convert -list format".
Stefan Monnier [Sat, 14 Mar 2020 19:39:31 +0000 (15:39 -0400)]
* lisp/progmodes/sql.el: Try and avoid `eval`; use define-derived-mode
Remove redundant `:group` args.
(sql-interactive-mode-map): `set-keymap-parent` is always fboundp.
(sql-get-product-feature): Prefer `symbol-value` over `eval`.
(sql--adjust-interactive-setup): New function, extracted from
`sql-interactive-mode`.
(sql-interactive-mode): Use it and `define-derived-mode`.
(sql-connect, sql-connection-menu-filter): Prefer `cl-progv` over `eval`.
Stefan Monnier [Sat, 14 Mar 2020 19:16:51 +0000 (15:16 -0400)]
* lisp/textmodes/conf-mode.el (conf-mode): Use define-derived-mode
(conf--guess-mode): Extract from conf-mode.
(defcustoms): Remove redundant `:group` args.
(conf-mode, conf-mode-initialize, conf-javaprop-mode)
(conf-space-mode, conf-space-keywords, conf-space-mode-internal)
(conf-colon-mode): Use `setq-local`.
Stefan Monnier [Sat, 14 Mar 2020 18:59:45 +0000 (14:59 -0400)]
* lisp/emacs-lisp/package.el (package-activate-1): Avoid duplicates
in `Info-directory-list`.
Andrea Corallo [Sat, 14 Mar 2020 15:14:12 +0000 (15:14 +0000)]
Merge remote-tracking branch 'savannah/master' into HEAD
Andrea Corallo [Sat, 14 Mar 2020 10:57:34 +0000 (10:57 +0000)]
Fix make bootstrap for native compilation
Add Makefile target native-compile-clean removing all eln output
folders.
This is also triggered by make bootstrap to perform a clean bootstrap.
Also revert some modification of the build system against master not
effective anymore with the new directory layout.
Eli Zaretskii [Sat, 14 Mar 2020 12:54:59 +0000 (14:54 +0200)]
Support Unicode 13.0
* admin/unidata/BidiBrackets.txt:
* admin/unidata/BidiMirroring.txt:
* admin/unidata/Blocks.txt:
* admin/unidata/NormalizationTest.txt:
* admin/unidata/SpecialCasing.txt:
* admin/unidata/UnicodeData.txt:
* admin/unidata/copyright.html:
* test/manual/BidiCharacterTest.txt: Updated files imported from
Unicode v13.0.
* admin/unidata/blocks.awk: Add "Symbols for Legacy Computing" to
known aliases.
* lisp/international/fontset.el (script-representative-chars)
(setup-default-fontset): Add new scripts.
* lisp/international/characters.el: Set syntax for Symbols for
Legacy Computing characters. Update setting of char-width-table.
* lisp/international/mule-cmds.el (ucs-names): Update ranges of
characters for which we want names in 'ucs-names'.
* test/lisp/international/ucs-normalize-tests.el
(ucs-normalize-tests--failing-lines-part1)
(ucs-normalize-tests--failing-lines-part2): Update according to
'ucs-normalize-check-failing-lines'.
Alan Mackenzie [Sat, 14 Mar 2020 12:27:20 +0000 (12:27 +0000)]
* lisp/progmodes/cc-defs.el (c-version): update to 5.34.2 for master branch
Lars Ingebrigtsen [Sat, 14 Mar 2020 12:17:57 +0000 (13:17 +0100)]
Fix regression in wisent-total-conflicts
* lisp/cedet/semantic/wisent/comp.el (wisent-total-conflicts):
There may not be a current source file. In that case, don't try
to keep track of the number of expected conflicts (bug#39911).
Jeremy Compostella [Sat, 14 Mar 2020 11:44:55 +0000 (12:44 +0100)]
Make previous mml-expand-html-into-multipart-related fix more general
* lisp/gnus/mml.el (mml-expand-html-into-multipart-related): This is
function is now called by a recursive
engine (mml-expand-all-html-into-multipart-related). The structure of
the returned value should be identical between an untouched part and a
expanded multipart (bug#39230).
Alan Mackenzie [Sat, 14 Mar 2020 11:39:40 +0000 (11:39 +0000)]
* lisp/progmodes/cc-defs.el (c-version): update to 5.34.1 for Emacs 27.1
Don't merge to master.
Philipp Stephani [Sat, 14 Mar 2020 10:25:57 +0000 (11:25 +0100)]
* lisp/textmodes/fill.el (fill-nobreak-predicate): Fix documentation.
Eli Zaretskii [Sat, 14 Mar 2020 10:00:46 +0000 (12:00 +0200)]
Add charsets to 'w32-charset-info-alist'
* lisp/w32-fns.el: Add a few more charsets to
w32-charset-info-alist.
Stefan Kangas [Sat, 14 Mar 2020 09:03:09 +0000 (10:03 +0100)]
Improve Package Menu hiding docstrings
* lisp/emacs-lisp/package.el (package-menu-toggle-hiding): Add
reference to 'package-menu-hidden-regexps'.
* lisp/emacs-lisp/package.el (package-menu-hide-package): Improve
docstring to say that hiding is saved in a user option. Fix a
typo. (Bug#39436)
Mattias Engdegård [Fri, 13 Mar 2020 18:51:02 +0000 (19:51 +0100)]
Avoid regexp stack overflow in GDB string matching (bug#22149)
* lisp/progmodes/gdb-mi.el (gdb--string-regexp):
Swap the or-clauses so that the rarely matching one comes first.
This avoids a build-up of backtrack points on the regexp stack.
Eli Zaretskii [Sat, 14 Mar 2020 08:31:01 +0000 (10:31 +0200)]
Fix display of Big5 characters when using Fontconfig
* src/ftfont.c (fc_charset_table): Fix the value of the big-5
representative codepoint. Reported by Brian Schack
<bschack-cocoa@usa.net>. (Bug#40057)
* src/macfont.m (cf_charset_table): Adjust the comment.
Andrea Corallo [Fri, 13 Mar 2020 22:16:21 +0000 (22:16 +0000)]
Prefix native compilation folders with "eln-"
Glenn Morris [Fri, 13 Mar 2020 14:50:33 +0000 (07:50 -0700)]
Merge from origin/emacs-27
a2b07f9f11 (origin/emacs-27) ; * etc/NEWS: Explain how to get back ol...
b468b3d1ff Fix a recent documentation change
1ab766fd58 Fix last change
ecfe633993 * lisp/tab-bar.el: Last-minute changes.
c1ce9fa7f2 * lisp/subr.el (cancel-change-group): Fix bug#39680
ef5744a988 Improve docs for horizontal scrolling with mouse and touch...
1bc3fa0bd0 * lisp/emacs-lisp/package.el (package-install): Fix typo i...
4537976afd Port .gdbinit to clang with -gdwarf-4
0883c800a0 Simplify rx example in manual
a695189248 ; * etc/NEWS: Fix typo.
# Conflicts:
# etc/NEWS
Eli Zaretskii [Fri, 13 Mar 2020 10:32:52 +0000 (12:32 +0200)]
; * etc/NEWS: Explain how to get back old behavior with --eval.
Eli Zaretskii [Fri, 13 Mar 2020 10:24:25 +0000 (12:24 +0200)]
Fix a recent documentation change
* doc/emacs/frames.texi (Mouse Commands): More detailed
description of how tilting the mouse-wheel works.
* lisp/mwheel.el (mouse-wheel-tilt-scroll)
(mouse-wheel-flip-direction): Fix the wording of doc strings.
(Bug#39979)
Michael Albinus [Fri, 13 Mar 2020 09:55:27 +0000 (10:55 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Fri, 13 Mar 2020 09:54:56 +0000 (10:54 +0100)]
* lisp/net/tramp.el (tramp-accept-process-output): Propagate `quit' signal.
Pieter van Oostrum [Tue, 3 Mar 2020 15:27:21 +0000 (16:27 +0100)]
* lisp/emacs-lisp/package.el (package-menu--generate): Fix doc string.
Add REMEMBER-POS to docstring (bug#39861).
Andrea Corallo [Thu, 12 Mar 2020 22:36:39 +0000 (22:36 +0000)]
* Do not produce .eln files when a byte compilation error happen
Have the byte compiler signal an error when compilation fails to stop
native compilation too.
Eli Zaretskii [Fri, 13 Mar 2020 07:46:47 +0000 (09:46 +0200)]
Fix last change
* lisp/tab-bar.el (tab-bar-new-button-show): Fix wording of the
doc string.
Noam Postavsky [Fri, 13 Mar 2020 01:07:56 +0000 (21:07 -0400)]
Make cl-equalp a bit more efficient at comparing strings
* lisp/emacs-lisp/cl-extra.el (cl-equalp): Use compare-strings with
the IGNORE-CASE argument, rather than creating downcased copies of the
strings to be compared.
Noam Postavsky [Fri, 13 Mar 2020 01:03:45 +0000 (21:03 -0400)]
rcirc: Match NickServ messages case-insensitively (Bug#39345)
Reported by Jake Nelson <jake.nelson@gmail.com>.
* lisp/net/rcirc.el (rcirc-check-auth-status): NickServ will response
will show the nick in the same case used during registration, but
it allows case-insensitive matches when logging in. Therefore, we
should accept response messages regardless of case.
Juri Linkov [Fri, 13 Mar 2020 00:10:55 +0000 (02:10 +0200)]
* lisp/tab-bar.el: Last-minute changes.
* lisp/tab-bar.el (tab-bar-mode): Check for non-nil
tab-bar-new-button and tab-bar-close-button.
(tab-bar-new-button-show): New defcustom.
(tab-bar-make-keymap-1): Check for tab-bar-new-button-show.
(tab-bar-separator): Add docstring.
Andrii Kolomoiets [Tue, 10 Mar 2020 08:14:59 +0000 (10:14 +0200)]
Fix NS child frame in native fullscreen (bug#36672)
* lisp/frame.el (toggle-frame-fullscreen): Don't sleep on cocoa.
Fullscreen animation waiting is moved to src/nsterm.m.
* src/nsterm.h (EmacsView): Add in_fullscreen_transition,
inFullScreenTransition, waitFullScreenTransition.
(NSWindowCollectionBehaviorFullScreenAuxiliary): New define.
* src/nsterm.m (ns_make_frame_visible): Wait for fullscreen animation.
(ns_set_parent_frame): Set frame collection behavior; make child frames
non-fullscreen; make non-child frames fullscreen if parent was fullscreen.
([EmacsView initFrameFromEmacs]): Set in_fullscreen_transition; set frame
collection behavior according to parent frame.
([EmacsView windowDidMove]): Remove code by commenting with "fixme".
([EmacsView windowWillEnterFullScreen], [EmacsView windowDidEnterFullScreen])
([EmacsView windowWillExitFullScreen], [EmacsView windowDidExitFullScreen]):
Set in_fullscreen_transition.
([EmacsView inFullScreenTransition], [EmacsView waitFullScreenTransition]):
New methods.
([EmacsView updateCollectionBehavior]): Set collection behavior according to
parent frame.
([EmacsView toggleFullScreen]): Wait for fullscreen animation.
Andrea Corallo [Thu, 12 Mar 2020 22:41:57 +0000 (22:41 +0000)]
Merge remote-tracking branch 'savannah/master' into HEAD
Stefan Monnier [Thu, 12 Mar 2020 22:21:19 +0000 (18:21 -0400)]
* lisp/emacs-lisp/eldoc.el: Remove redundant `:group` arguments
Stefan Monnier [Thu, 12 Mar 2020 15:18:07 +0000 (11:18 -0400)]
* lisp/emacs-lisp/eldoc.el (eldoc--supported-p): Understand the "old" API
Stefan Monnier [Thu, 12 Mar 2020 14:03:14 +0000 (10:03 -0400)]
* lisp/subr.el (cancel-change-group): Undo accidental change
Stefan Monnier [Thu, 12 Mar 2020 14:01:54 +0000 (10:01 -0400)]
* lisp/subr.el (cancel-change-group): Fix bug#39680
Don't re-use an existing `pending-undo-list` even if (eq last-command 'undo)
since there might have been changes to the buffer since that `undo` command
and the `pending-undo-list` can hence be invalid for the current
buffer contents.
Michael Albinus [Thu, 12 Mar 2020 10:44:38 +0000 (11:44 +0100)]
* lisp/net/tramp-sh.el (tramp-find-shell): Skip for asynchronous processes.
İ. Göktuğ Kayaalp [Sat, 7 Mar 2020 21:15:01 +0000 (00:15 +0300)]
Improve docs for horizontal scrolling with mouse and touchpad (Bug#39979)
* lisp/mwheel.el (mouse-wheel-tilt-scroll,
mouse-wheel-flip-direction): Improve docstrings.
* doc/emacs/frames.texi (Mouse Commands): Mention touchpads.
Stefan Kangas [Mon, 9 Mar 2020 01:24:55 +0000 (02:24 +0100)]
Remove XEmacs exclusive face from themes
* etc/themes/deeper-blue-theme.el (class):
* etc/themes/leuven-theme.el (class):
* etc/themes/manoj-dark-theme.el (manoj-dark):
* etc/themes/whiteboard-theme.el (class): Don't set XEmacs exclusive
face 'font-lock-doc-string-face'.
Stefan Kangas [Sun, 8 Mar 2020 23:33:53 +0000 (00:33 +0100)]
Remove more XEmacs compat code from eshell
* lisp/eshell/em-glob.el (eshell-extended-glob):
* lisp/eshell/em-ls.el (eshell-do-ls):
* lisp/eshell/em-unix.el (eshell/du, eshell-mvcpln-template):
* lisp/eshell/esh-util.el (eshell-file-attributes): Remove more XEmacs
compat code; no longer let-bind the unused variable ange-cache.
Stefan Monnier [Tue, 10 Mar 2020 22:23:41 +0000 (18:23 -0400)]
* lisp/emacs-lisp/cl-macs.el: More care with `eval` and with `cl-typep`
(cl-eval-when, cl--compile-time-too, cl-load-time-value):
Obey lexical-binding.
(cl-check-type): Prefer the predicate rather than the type in the
error signal when it's easy to do (as is done outside of CL).
(cl-deftype-satisfies): Add definitions for standard types.
Stefan Monnier [Tue, 10 Mar 2020 22:08:54 +0000 (18:08 -0400)]
* lisp/emacs-lisp/cl-macs.el (cl--transform-lambda): Simplify result
It used to return a pair (EXP . LAMBDA-CDR) but EXP was always nil, so
just return the LAMBDA-CDR instead.
(cl-defun, cl-iter-defun, cl-defmacro, cl-function, cl-macrolet):
Adjust callers accordingly.
Stefan Monnier [Tue, 10 Mar 2020 16:12:06 +0000 (12:12 -0400)]
* lisp/window.el: Avoid `called-interactively-p`.
(other-window, delete-other-windows, next-buffer, previous-buffer):
Use an `interactive` arg instead.
Stefan Monnier [Tue, 10 Mar 2020 16:03:11 +0000 (12:03 -0400)]
* lisp/ido.el: Remove redundant `:group`s
Stefan Monnier [Tue, 10 Mar 2020 16:00:51 +0000 (12:00 -0400)]
* lisp/subr.el (dlet): New macro
* lisp/calendar/calendar.el (calendar-dlet*): Use it.
Andrea Corallo [Tue, 10 Mar 2020 10:47:59 +0000 (10:47 +0000)]
Merge remote-tracking branch 'savannah/master' into HEAD
AndreaCorallo [Mon, 9 Mar 2020 22:00:37 +0000 (22:00 +0000)]
* Improve load_comp_unit
Fix uninitialized ephemeral data relocation for the case when a dumped
compilation unit is manually reloaded.
Guard also data_ephemeral_vec against compiler optimizations.
AndreaCorallo [Mon, 9 Mar 2020 16:51:15 +0000 (16:51 +0000)]
* Fix store_function_docstring for for native functions
Do not Nil native_doc fields. This will be naturally dumped by
pdumper. This was affecting dumped functions.
Andrea Corallo [Mon, 9 Mar 2020 10:45:51 +0000 (10:45 +0000)]
* Fix GC mark for native compiled functions
native_intspec and native_doc fields has to be reached by the subr
cause are not anymore in the CU.
AndreaCorallo [Mon, 9 Mar 2020 17:35:07 +0000 (17:35 +0000)]
* Set relocation class as ephemeral in `comp-limplify-top-level'
Juri Linkov [Mon, 9 Mar 2020 23:41:15 +0000 (01:41 +0200)]
* lisp/emacs-lisp/package.el (package-install): Fix typo in docstring.
Juri Linkov [Mon, 9 Mar 2020 23:39:05 +0000 (01:39 +0200)]
Improve new-frame logic of windmove-display-in-direction (bug#39875)
* lisp/windmove.el (windmove-display-in-direction):
For frame-based logic use code similar to display-buffer-pop-up-frame.
Juri Linkov [Mon, 9 Mar 2020 23:34:25 +0000 (01:34 +0200)]
In vc-print-branch-log use root instead of the default directory (bug#39704)
* lisp/vc/vc.el (vc-print-branch-log): Use rootdir instead of
default-directory for the second arg of vc-print-log-internal.
Paul Eggert [Mon, 9 Mar 2020 19:24:21 +0000 (12:24 -0700)]
Port .gdbinit to clang with -gdwarf-4
* src/.gdbinit (xgetsym): Port to clang with -gdwarf-4, which
doesn’t output the type of lispsym anywhere other than emacs.o
(Bug#39962).
Michael Albinus [Mon, 9 Mar 2020 15:05:21 +0000 (16:05 +0100)]
Finish implementation of set-file-times FLAG arg in Tramp
* lisp/net/tramp-adb.el (tramp-adb-handle-set-file-times):
Implement FLAG.
(tramp-adb-handle-copy-file): Adapt `set-file-times' call.
* lisp/net/tramp-compat.el (tramp-compat-set-file-times): New defalias.
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-set-file-modes)
(tramp-gvfs-handle-set-file-times, tramp-gvfs-set-file-uid-gid):
Simplify `tramp-gvfs-url-file-name' call.
* lisp/net/tramp-sh.el (tramp-sh-handle-set-file-times): Implement FLAG.
(tramp-do-copy-or-rename-file-via-buffer)
(tramp-do-copy-or-rename-file-out-of-band): Add optional argument
OK-IF-ALREADY-EXISTS. Adapt callees.
(tramp-do-copy-or-rename-file-via-buffer)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band): Adapt `set-file-times' call.
* lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
(tramp-smb-handle-copy-file): Adapt `set-file-times' call.
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-do-copy-or-rename-file):
Adapt `set-file-times' call.
(tramp-sudoedit-handle-set-file-times): Implement FLAG.
* test/lisp/net/tramp-tests.el (tramp-test22-file-times): Extend test.
Mattias Engdegård [Mon, 9 Mar 2020 11:13:45 +0000 (12:13 +0100)]
Simplify rx example in manual
* doc/lispref/searching.texi (Rx Notation):
Use the 'not' shorthand introduced in Emacs 27.
Michael Albinus [Mon, 9 Mar 2020 14:49:05 +0000 (15:49 +0100)]
; * etc/NEWS: Fix typo.
Andrea Corallo [Mon, 9 Mar 2020 07:49:33 +0000 (07:49 +0000)]
Merge remote-tracking branch 'savannah/master' into HEAD
Andrea Corallo [Mon, 9 Mar 2020 07:47:57 +0000 (07:47 +0000)]
* Fix regexp instroduced by
f055f52321
Paul Eggert [Sun, 8 Mar 2020 23:57:41 +0000 (16:57 -0700)]
Merge from origin/emacs-27
cf223dc928 ; * src/timefns.c: Fix typo in previous change.
20d3d3a950 * src/timefns.c: Add comments.
Paul Eggert [Sun, 8 Mar 2020 23:49:32 +0000 (16:49 -0700)]
; * src/timefns.c: Fix typo in previous change.
Paul Eggert [Sun, 8 Mar 2020 23:43:54 +0000 (16:43 -0700)]
* src/timefns.c: Add comments.
Andrea Corallo [Sun, 8 Mar 2020 22:33:54 +0000 (22:33 +0000)]
* Fix typo into pdumper integration
Andrea Corallo [Sun, 8 Mar 2020 21:40:51 +0000 (21:40 +0000)]
* New native-comp CI setup
- Disable 'test-all' till is known to be broken in this branch.
- Run 'test-native-bootstrap' always (not only when scheduled).
- Set 'test-native-bootstrap' timeout to 3 hours.